﻿using System.Collections;
using System.Collections.Generic;
using ZGUIFW;
using UnityEngine;
using UnityEngine.UI;

namespace DemoProject
{
    public class LogonUIForm : BaseUIForm
    {
		public Text BtnText;

        private void Awake()
        {
            //定义本窗体的性质
            base.CurrentType.UiFormType = UIFormType.Normal;
            base.CurrentType.UiFormShowMode = UIFormShowMode.Normal;
            base.CurrentType.UiFormLucenyType = UIFormLucenyType.Lucency;
            // 添加按钮事件
            RigisterBtnEvent("Button", LogicSys);
			if (BtnText)
			{
				BtnText.text = ShowText("LogonSystem");
			}
        }

        private void LogicSys(GameObject go)
        {
            //账号密码校验

            //跳转到下一个界面
            UIManager.GetInstance().ShowUIForms(ProConst.SELECTHERO_FORM);
        }
    } 
}

